package com.itheima.a01abstractdemo1;

public class Test {
    public static void main(String[] args) {
        //创建对象
        Dog dog = new Dog("大黄",2);
        dog.drink();
        System.out.println(dog.getName()+" "+dog.getAge());
    }
}
